fix(schematic): respect intentional unconnected pins - #267
Open
nordic-style wants to merge 1 commit into
Open
Conversation
nordic-style
force-pushed
the
codex/fix/component-connection-pin-types
branch
from
August 17, 2026 23:02
846e652 to
1e4c5e7
Compare
This was referenced Aug 18, 2026
nordic-style
force-pushed
the
codex/fix/component-connection-pin-types
branch
from
August 18, 2026 00:33
1e4c5e7 to
2de4473
Compare
Owner
|
This and #280 add the identical |
The component validator reported pins declared no-connect, ignored its public power-pin option, and projected every unit's pins through each placed unit. Preserve KiCad electrical types, honor the filter, exempt explicit and intrinsic no-connect pins, and resolve only the selected unit. Refs mixelpixx#182
nordic-style
force-pushed
the
codex/fix/component-connection-pin-types
branch
from
August 23, 2026 13:16
2de4473 to
86e8019
Compare
Contributor
Author
|
Resolved as requested: I kept the smaller #267 implementation, closed #280 as its duplicate, rebased this one-commit branch onto current |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stop
validate_component_connectionsfrom reporting intentionally unconnected symbol pins and pins belonging to other units, and make its existingignore_power_pinsoption effective.Refs #182
Root cause and approach
The validator used the unit-agnostic pin extractor, discarded each library pin's electrical type, and never read
ignore_power_pins. As a result it superimposed pins from other units and treated declared no-connect and optionally ignored power pins as missing connections.no_connectand ordinary pins carrying a schematic no-connect marker.ignore_power_pinsforpower_inandpower_outpins.pin_typeto each finding and clarify the public tool description.This keeps the smaller #267 framing selected by the maintainer. #280 is now closed as its duplicate. #272 continues to cover the other analysis/export/review paths.
Compatibility and safety
The request schema is unchanged. Findings gain an additive
pin_typefield. Results intentionally stop containing library-declared NC pins, ignored power pins, and pins from unplaced units.The validator is read-only and does not alter the schematic.
Validation
After rebasing this one-commit PR onto current
main(2183267), all commands required byCONTRIBUTING.mdpass on this exact branch:cargo test --workspace --locked --lib --testscargo test --workspace --locked --doccargo clippy --workspace --locked --all-targets -- -D warningscargo fmt --all -- --checkLive-GUI tests remain intentionally ignored by the upstream suite unless a running KiCad GUI/socket is supplied.
Risk and rollback
The main behavioral risk is filtering a pin that should still be reported. Regression tests cover declared NC pins, schematic no-connect markers, power filtering, selected units, and mid-wire junction behavior. Rollback is a single focused commit.